package com.sr.recitewords.datasource.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("统一继承类")
public class BaseEntity {
    @ApiModelProperty(value = "是否删除 0未删除 1删除")
    private String ynDel;
    @ApiModelProperty(value = "创建者userId")
    private String createUserId;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    @ApiModelProperty(value = "修改者userId")
    private String updateUserId;
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建者名称")
    @TableField(exist = false)
    private String createUserName;
    @ApiModelProperty(value = "修改者名称")
    @TableField(exist = false)
    private String updateUserName;

}
